package com.hytc.entity;

public class Product {
    public int id;
    public String commodity_picture;
    public String commodity_name;
    public String seller;
    public String phone;
    public double price;
    public int classify_id;
    public double discount;

    public Product() {
    }

    public Product(int id, String commodity_picture, String commodity_name, String seller, String phone, double price, int classify_id, double discount) {
        this.id = id;
        this.commodity_picture = commodity_picture;
        this.commodity_name = commodity_name;
        this.seller = seller;
        this.phone = phone;
        this.price = price;
        this.classify_id = classify_id;
        this.discount = discount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCommodity_picture() {
        return commodity_picture;
    }

    public void setCommodity_picture(String commodity_picture) {
        this.commodity_picture = commodity_picture;
    }

    public String getCommodity_name() {
        return commodity_name;
    }

    public void setCommodity_name(String commodity_name) {
        this.commodity_name = commodity_name;
    }

    public String getSeller() {
        return seller;
    }

    public void setSeller(String seller) {
        this.seller = seller;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getClassify_id() {
        return classify_id;
    }

    public void setClassify_id(int classify_id) {
        this.classify_id = classify_id;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", commodity_picture='" + commodity_picture + '\'' +
                ", commodity_name='" + commodity_name + '\'' +
                ", seller='" + seller + '\'' +
                ", phone='" + phone + '\'' +
                ", price=" + price +
                ", classify_id=" + classify_id +
                ", discount=" + discount +
                '}';
    }
}
